import React, { Component } from 'react'

export default class EventDemo extends Component {
  render() {
    return (
      <div>
        <input></input>
        <button onClick={this.handleClick}>点击</button>
        <button onClick={()=>{console.log('点击')}}>点击</button>
        <button onClick={this.clickBtn}>点击2</button>
      </div>
    )
  }

  handleClick() {
    console.log('点击22')
  }

  clickBtn = () => {
    console.log('点击33')
  }
}
